var status = 0;
var ttt = "#fUI/UIWindow/Quest/icon2/7#";
var ttt2 = "#fUI/UIWindow/Quest/icon6/7#";
var ttt3 = "#fUI/UIWindow/Quest/icon3/6#";
var ttt4 = "#fUI/UIWindow/Quest/icon5/1#";
var ttt5 = "#fUI/UIWindow/Quest/icon0#";
var ttt7 = "#fUI/Basic/BtHide3/mouseOver/0#";
var ttt6 = "#fUI/UIWindowBT.img/WorldMap/BtQsearch/mouseOver/0#";

function start() {
    status = -1;
    action(1, 0, 0)
}

function action(d, b, a) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    if (d == 1) {
        status++
    } else {
        status--
    }
    if (cm.getMapId() == 180000001) {
        cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.");
        cm.dispose()
    } else {
        if (status == 0) {
            var c = "\r\n#fn微软雅黑##fs14##e#d您好，本服新增特色副本系列..#n#l#k\r\n#fs11#";
            c += "#L23#" + ttt6 + " #r#e[NEW]#n#b 黄金寺院 #r #i5062002:##k#i5062500:##k#i4001839:#140装备#k#l#n\r\n";
            c += "#L20#" + ttt6 + " #r#e[NEW]#n#b 守卫金猪 #r 点卷:抵用卷#i5062500:##k#i5062002:##k#l#n\r\n";
            c += "#L21#" + ttt6 + " #r#e[NEW]#n#b 迷幻之域 #r #i4000463:##k#i4001839:##k#i5062500:##i5062002#等.#k#l#n\r\n";
            c += "#L22#" + ttt6 + " #r#e[NEW]#n#b 自身影子 #r #i2430069:##k#i2022728:##k#i2022530:#星球星座椅子#k#l#n\r\n";
            c += "#L16#" + ttt6 + " #r#e[NEW]#n#b 新版武陵道场 #r #i2046856:##k#i2046857:##k#i1082392:##k#l#n\r\n";
            c += "#L15#" + ttt6 + " #r#e[NEW]#n#b 枫之高校 #r #i4310129:##k#i5062009:##k#i5062500:##k#l#n\r\n";
            c += "#L12#" + ttt6 + " #r#e[HOT]#n#b 射手村跳跳跳（丰厚点卷）#r #i4310129:##k#l#n\r\n";
            c += "#L13#" + ttt6 + " #r#e[HOT]#n#b 玩具城跳跳跳（丰厚点卷）#r #i4310129:##k#l#n\r\n";
            c += "#L10#" + ttt6 + " #r#e[HOT]#n#b 阿里安特竞技场#r #v4310036# #k#l#n\r\n";
            c += "#L6#" + ttt6 + " #r#b 关卡火力测试(小试牛刀)#v5062002##l\r\n";
            c += "#L9#" + ttt6 + " #r#b 生化魔人欧碧啦#v1112915##v5062000##v5062002##v5064000##l\r\n";
            c += "\r\n";
            cm.askMenu(c, 0, 9400570)
        } else {
            if (status == 1) {
                switch (a) {
                    case 0:
                        cm.dispose();
                        cm.openNpc(9900003, 109);
                        break;
                    case 1:
                        cm.worldSpouseMessage(32, "[全民飞机大战] ：玩家 " + cm.getPlayer().getName() + " 进入了机场候机室。");
                        cm.dispose();
                        cm.warp(540010001, 0);
                        break;
                    case 2:
                        cm.dispose();
                        cm.openNpc(9900003, 107);
                        break;
                    case 3:
                        cm.dispose();
                        cm.openNpc(9220032);
                        break;
                    case 4:
                        cm.dispose();
                        cm.openNpc(9310057);
                        break;
                    case 5:
                        cm.dispose();
                        cm.openNpc(9900003, 101);
                        break;
                    case 6:
                        cm.dispose();
                        cm.openNpc(9900003, 102);
                        break;
                    case 7:
                        cm.dispose();
                        cm.openNpc(9900003, 700);
                        break;
                    case 8:
                        cm.dispose();
                        cm.openNpc(2060103);
                        break;
                    case 9:
                        cm.dispose();
                        cm.openNpc(9120050);
                        break;
                    case 10:
                        cm.dispose();
                        cm.openNpc(2101017, 1);
                        break;
                    case 11:
                        cm.dispose();
                        cm.warp(262030000);
                        break;
                    case 12:
                        cm.dispose();
                        cm.warp(100000202, 0);
                        cm.sendOk("跳到顶上，去领取属于你的奖励吧！");
                        break;
                    case 13:
                        cm.dispose();
                        cm.warp(220000006, 0);
                        cm.sendOk("跳到顶上，去领取属于你的奖励吧！");
                        break;
                    case 14:
                        cm.dispose();
                        cm.warp(951000000);
                        break;
                    case 15:
                        cm.dispose();
                        cm.warp(744000000);
                        break;
                    case 16:
                        cm.dispose();
                        cm.warp(925020001);
                        break;
                    case 17:
                        cm.dispose();
                        cm.openNpc(9310114, 2);
                        break;
                    case 18:
                        cm.dispose();
                        cm.openNpc(9220059);
                        break;
                    case 20:
                        cm.dispose();
                        cm.openNpc(9300006, 1);
                        break;
                    case 21:
                        cm.dispose();
                        cm.openNpc(9070010, 1);
                        break;
                    case 22:
                        cm.dispose();
                        cm.openNpc(9900005, 1);
                        break;
                    case 23:
                        cm.dispose();
                        cm.openNpc(9900003, 101);
                        break;
                    case 24:
                        cm.dispose();
                        cm.openNpc(9310475);
                        break
                }
            }
        }
    }
};